package com.yunyao.common.dto.base;

import lombok.Data;

import java.io.Serializable;

/**
 * @author xingjishuai
 * @date 2024-07-11
 */
@Data
public class BaseDto implements Serializable {
    private static final long serialVersionUID = -7181318614832488752L;

    private Long pageIndex;

    private Long pageSize;

    private String beginDate;

    private String endDate;


    public Long getPageIndex() {
        return pageIndex == null ? 1 : pageIndex;
    }

    public Long getPageSize() {
        return pageSize == null ? 10 : pageSize;
    }
}
